import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from './router/index'
import {createPinia} from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as icons from '@element-plus/icons-vue'
import VueCookies from 'vue3-cookies'


const app = createApp(App);
app
    .use(router)
    .use(createPinia())
    .use(ElementPlus)
    .use(VueCookies, {
        expireTimes: "30d",
        path: "/",
        domain: "",
        secure: true,
        sameSite: "None",
    })
    .mount('#app')
Object.keys(icons).forEach(key => {
    app.component(key, icons[key as keyof typeof icons])
})

